What will this code look like in Javascript